const mongoose = require("../conf/db");

const schema = new mongoose.Schema({
  userId: {
    type: String,
    required: true
  },
  goodsLists: {
    type: String,
    required: true
  },
  total: {
    type: Number,
    required: true
  },
  subOrderTime: {
    type: Number,
    required: true
  }
});

const model = mongoose.model("order", schema);

module.exports = model;
